<table class="form">
    <tr>
        <th>收客户费用<br>（人民币）</th>
        <td><input class="text" id="custom_fee" name="custom_fee" /></td>
        <th>公认证费用</th>
        <td><input class="text" id="certification_fee" name="certification_fee" /></td>
        <th>总费用</th>
        <td><input class="text" id="total_fee" name="total_fee" readonly /></td>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <th>是否收款</th>
        <td><input class="text" type="checkbox" id="is_collected" name="is_collected" value="是" /></td>
        <th>收款日期</th>
        <td><input class="text" class="text normal-date" id="collection_date" name="collection_date" /></td>
        <th>收款账户</th>
        <td><input class="text" id="collection_account" name="collection_account" /></td>
        <th>确认人</th>
        <td><input class="text" id="confirmor" name="confirmor" readonly /></td>
    </tr>
    <tr>
        <th>是否开票</th>
        <td><input class="text" type="checkbox" id="is_billed" name="is_billed" value="是" /></td>
        <th>开票金额</th>
        <td><input class="text" id="billing_amount" name="billing_amount" /></td>
        <th>开票日期</th>
        <td><input class="text" class="text normal-date" id="billing_date" name="billing_date" /></td>
        <th>开票人</th>
        <td><input class="text" id="drawer" name="drawer" readonly /></td>
    </tr>
    <tr>
        <th>外方收费</th>
        <td colspan="5"><input class="text" id="foreign_side_charge" name="foreign_side_charge" /></td>
    </tr>
</table>
<table class="editable-list" id="table-checks">
    <thead>
        <tr>
            <th rowspan="2">外所账单号</th>
            <th rowspan="2">账单日期</th>
            <th colspan="5">账单金额</th>
            <th rowspan="2">汇款日期</th>
            <th rowspan="2">汇款明细</th>
            <th rowspan="2" number>余额(RMB)</th>
            <th rowspan="2">制单人</th>
            <th rowspan="2">确认人</th>
            <th rowspan="2">&nbsp;</th>
        </tr>
        <tr>
            <th>币种</th>
            <th number>外币金额</th>
            <th number>汇率</th>
            <th number>手续费(RMB)</th>
            <th number>合计(RMB)</th>
        </tr>
    </thead>
    <tbody>
        <tr class="hide">
            <td name="ck_check_no" editable></td>
            <td name="ck_check_date" editable edittype="date"></td>
            <td name="ck_currency" editable></td>
            <td name="ck_foreign_amount" number editable></td>
            <td name="ck_foreign_rate" number editable></td>
            <td name="ck_fee" number editable></td>
            <td name="ck_total_amount" number></td>
            <td name="ck_remit_date" editable edittype="date"></td>
            <td name="ck_remit_detail" editable></td>
            <td name="ck_balance" number></td>
            <td name="ck_maker" editable edittype="select" sourceid="financial_user"></td>
            <td name="ck_confirmor" editable edittype="select" sourceid="financial_user"></td>
            <td>
                <button type="button" name="remove">删除</button>
            </td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="13">
                <button type="button" name="append">新增</button>
                <input type="hidden" id="checks" name="checks" />
                <?php echo form_dropdown('financial_user', $financial_users, '', 'class="hide" id="financial_user"'); ?>
            </td>
        </tr>
    </tfoot>
</table>